import request from '@/plugin/axios'

export function fetchList (data) {
  return request({
    url: '/user/queryUserListByRole',
    method: 'get',
    params: data
  })
}

export function createOrEdit (data) {
  return request({
    url: '/user/editUser',
    method: 'post',
    data: data
  })
}

export function queryById (id) {
  return request({
    url: '/classroom/queryById?id=' + id,
    method: 'get'
  })
}

export function deleteById(id) {
  return request({
    url: '/classroom/deleteClassRoom?id=' + id,
    method: 'get'
  })
}